diff options
Diffstat (limited to 'app/[lng]/evcp')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/bidding-notice/page.tsx | 5 | ||||
| -rw-r--r-- | app/[lng]/evcp/(evcp)/report/page.tsx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/[lng]/evcp/(evcp)/bidding-notice/page.tsx b/app/[lng]/evcp/(evcp)/bidding-notice/page.tsx index 86e4bd6c..003db012 100644 --- a/app/[lng]/evcp/(evcp)/bidding-notice/page.tsx +++ b/app/[lng]/evcp/(evcp)/bidding-notice/page.tsx @@ -2,6 +2,11 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/com import { BiddingNoticeEditor } from '@/lib/bidding/bidding-notice-editor' import { getBiddingNoticeTemplate } from '@/lib/bidding/service' +// template 받을 때, 비동기 함수 호출 후 await 하므로 static-pre-render 과정에서 dynamic-server-error 발생. +// 따라서, dynamic 속성을 force-dynamic 으로 설정하여 동적 렌더링 처리 +// getBiddingNoticeTemplate 함수에 대한 Promise를 넘기는 식으로 수정하게 되면 force-dynamic 선언을 제거해도 됨. +export const dynamic = 'force-dynamic' + export default async function BiddingNoticePage() { const template = await getBiddingNoticeTemplate() diff --git a/app/[lng]/evcp/(evcp)/report/page.tsx b/app/[lng]/evcp/(evcp)/report/page.tsx index a538b37c..463a9687 100644 --- a/app/[lng]/evcp/(evcp)/report/page.tsx +++ b/app/[lng]/evcp/(evcp)/report/page.tsx @@ -5,6 +5,11 @@ import { ErrorBoundary } from "@/components/error-boundary"; import { getDashboardData } from "@/lib/dashboard/service"; import { DashboardClient } from "@/lib/dashboard/dashboard-client"; +// 데이터 fetch 시 비동기 함수 호출 후 await 하므로 static-pre-render 과정에서 dynamic-server-error 발생. +// 따라서, dynamic 속성을 force-dynamic 으로 설정하여 동적 렌더링 처리 +// getDashboardData 함수에 대한 Promise를 넘기는 식으로 수정하게 되면 force-dynamic 선언을 제거해도 됨. +export const dynamic = 'force-dynamic' + export default async function IndexPage() { // domain을 명시적으로 전달 const domain = "evcp"; |
